#include "libraries.h"
#include "extern.h"
#include "Blood.h"

void CBlood::Draw()
{
	int x, y;
	x = X-(plX-10);
	if(x>=0&&x<21)
	{
		y = Y-(plY-10);
		if(y>=0&&y<21)
		{
			if (ViewMap[x][y] == 1 || View == 0)
			{
				int a;
				if (HP > 320) a = 0; else a = 1;
				BloodPicture[a].set(SprX-plX*32+LenghtToScreenMiddleX+(320-LenghtToScreenMiddleX)*2, SprY-plY*32+LenghtToScreenMiddleY+(320-LenghtToScreenMiddleY)*2);
				BloodPicture[a].Draw();
			}
		}
	}
}